<?
if(!EDITOR) common::accessdenied();

if(POST) {
    switch (PARAMS) {
        case 'delete':
            photos::delete(array('accountID'=>$_POST['accountID'],'ID'=>$_POST['photoID'],'check'=>true));
        break;
        case 'approve':
            photos::approve($_POST['photoID']);
        break;
    }
} else {
    $data->photo = photos::get(array('forcheck'=>true));
    $data->TITLE = $data->photo->caption?_('Photo checking'):_('Content not found');
    $data->DESCRIPTION = $data->photo->caption?_('Photo checking service.'):_('This content is currently unavailable');
    $data->CSS = 'home';
}
?>